<?php
class NewsCategory extends AppModel{
	public $name='NewsCategory';	
	public $actsAs = array('Translate'=>array('title',));
	public $validate = array(		
		'title' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
						array('rule'=>array('unique','title'),'message'=>'data is already existed'))	
	);
	
	// Use a different model (and table)
    public $translateTable  = 'newscategories_i18n';
	/*
    public $hasAndBelongsToMany = array(        
			'NewsCategory' => array(
			    'className'    => 'NewsCategory',
    			'foreignKey'=>'parent_id',
    			'associationForeignKey'=>'id'
			)
    	);  
    */	
    
}
?>
